load("@io_bazel_rules_go//go:def.bzl", "go_binary")

go_binary(
    name = "some_binary",
    srcs = ["main.go"],
)

genrule(
    name = "normalised_binary",
    srcs = [":some_binary"],
    outs = ["the_binary"],
    cmd = "cp $(SRCS) $@",
)

sh_test(
    name = "executable_name",
    size = "small",
    srcs = ["name_test.sh"],
    data = [":normalised_binary"],
)
